package com.yl.pattern.structuralmodel.adapter.class_adapter;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 8:46
 * @ClassName SdAdapterTf
 * @Description 适配器类
 */
public class SdAdapterTf extends TfCardImpl implements SdCard{
    @Override
    public String readSd() {
        System.out.println("adapter read tf card ");
        return readTf();
    }

    @Override
    public void writeSd(String msg) {
        System.out.println("adapter write tf card");
        writeTf(msg);
    }
}
